﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="FilteredTextBox.aspx.cs" Inherits="Samples.Views.Samples.FilteredTextBox" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div class="demoarea">
        <div class="demoheading">FilteredTextBox</div>
        
        <strong>Digits:</strong><br />
        <%= Html.TextBox("digits") %>
        <br /><br />
        
        <strong>Lowercase letters:</strong><br />
        <%= Html.TextBox("lowercase") %>
        <br /><br />
        
        <strong>Only math symbols (+,-,*,/,=,.) and numbers:</strong><br />
        <%= Html.TextBox("math") %>
        <br /><br />
        
        <strong>No digits:</strong><br />
        <%= Html.TextBox("nodigits") %>
        <br /><br />
    </div>
    
    <%= Ajax.FilteredTextBox("digits", FilterTypes.Numbers) %>
    <%= Ajax.FilteredTextBox("lowercase", FilterTypes.LowercaseLetters) %>
    <%= Ajax.FilteredTextBox("math", FilterTypes.Numbers | FilterTypes.Custom, "+-=/*().")%>
    <%= Ajax.FilteredTextBox("nodigits", "0123456789") %>
</asp:Content>
